
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>4.菜单 · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="5-set.html" />
    
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" >
            
                <span>
            
                    
                    入门
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1.1" data-path="../">
            
                <a href="../">
            
                    
                    0.开始
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.2" data-path="1-install.html">
            
                <a href="1-install.html">
            
                    
                    1.安装
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.3" data-path="2-init.html">
            
                <a href="2-init.html">
            
                    
                    2.创建一本书
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.4" data-path="3-directory.html">
            
                <a href="3-directory.html">
            
                    
                    3.目录结构
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.2" >
            
                <span>
            
                    
                    基础
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter active" data-level="1.2.1" data-path="4-menu.html">
            
                <a href="4-menu.html">
            
                    
                    4.菜单
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="5-set.html">
            
                <a href="5-set.html">
            
                    
                    5.设置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="6-words.html">
            
                <a href="6-words.html">
            
                    
                    6.词汇表
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.4" data-path="7-langs.html">
            
                <a href="7-langs.html">
            
                    
                    7.多语言
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.5" data-path="8-markdown.html">
            
                <a href="8-markdown.html">
            
                    
                    8.markdown
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.6" data-path="9-asciidoc.html">
            
                <a href="9-asciidoc.html">
            
                    
                    9.AsciiDoc
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.7" data-path="10-E-book.html">
            
                <a href="10-E-book.html">
            
                    
                    10.生成电子书
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" >
            
                <span>
            
                    
                    异常处理
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="error.html">
            
                <a href="error.html">
            
                    
                    异常处理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="support.html">
            
                <a href="support.html">
            
                    
                    赞助/支持
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >4.菜单</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="&#x83DC;&#x5355;&#x4E0E;&#x9875;&#x9762;">&#x83DC;&#x5355;&#x4E0E;&#x9875;&#x9762;</h1>
<h2 id="&#x83DC;&#x5355;">&#x83DC;&#x5355;</h2>
<p>gitbook &#x4F7F;&#x7528;&#x4E00;&#x4E2A; <code>SUMMARY.md</code> &#x6587;&#x4EF6;&#x6765;&#x5B9A;&#x4E49;&#x6587;&#x6863;&#x7684;&#x83DC;&#x5355;&#x3002;<br><code>SUMMARY.md</code> &#x4E2D; <code>[]</code> &#x5185;&#x7684;&#x5185;&#x5BB9;&#x662F;&#x6807;&#x9898;&#xFF0C;<code>()</code> &#x5185;&#x7684;&#x5185;&#x5BB9;&#x662F;&#x6587;&#x6863;&#x8DEF;&#x5F84;&#x3002;<br>&#x7AE0;&#x8282;&#x548C;&#x5B50;&#x7AE0;&#x8282;&#x7528;&#x56DB;&#x4E2A;&#x7A7A;&#x683C;&#x6216;&#x8005; <code>tab</code> &#x952E;&#x6765;&#x5206;&#x7EA7;&#x3002;<br>&#xFF08;&#x5373;Markdown&#x683C;&#x5F0F;&#xFF09;  </p>
<p><strong>&#x7B80;&#x5355;&#x793A;&#x4F8B;</strong>&#xFF1A;  </p>
<pre><code># &#x6982;&#x8FF0;

### &#x7B2C;&#x4E00;&#x90E8;&#x5206;

* [&#x7B2C;&#x4E00;&#x90E8;&#x5206;](part1/README.md)
    * [Writing&#x5F88;&#x725B;](part1/README.md#writing)
    * [GitBook&#x5F88;&#x725B;](part1/README.md#gitbook)
* [&#x7B2C;&#x4E8C;&#x90E8;&#x5206;](part2/README.md)
    * [&#x6211;&#x4EEC;&#x559C;&#x6B22;&#x793E;&#x4EA4;&#x7F51;&#x7EDC;](part2/README.md#feedback)
    * [&#x66F4;&#x597D;&#x7684;&#x5199;&#x4F5C;&#x5DE5;&#x5177;](part2/README.md#tools)
</code></pre><p>&#x6BCF;&#x4E00;&#x4E2A;&#x7AE0;&#x8282;&#x90FD;&#x6709;&#x4E00;&#x4E2A;&#x4E13;&#x7528;&#x7684;&#x9875;&#x9762;&#xFF08;<code>part1/README.md#</code>&#xFF09;,&#x5E76;&#x88AB;&#x5206;&#x5272;&#x6210;&#x5B50;&#x7AE0;&#x8282;&#x3002;  </p>
<p><strong>&#x533A;&#x57DF;&#x5BFC;&#x822A;</strong></p>
<p>&#x6587;&#x7AE0;&#x53EF;&#x4EE5;&#x4F7F;&#x7528;&#x533A;&#x57DF;&#x5BFC;&#x822A;&#x5B9A;&#x4F4D;&#x5230;&#x6587;&#x4EF6;&#x7684;&#x7279;&#x5B9A;&#x90E8;&#x5206;&#x3002;<br>&#x5728; md &#x6587;&#x4EF6;&#x7ED3;&#x5C3E;&#x4F7F;&#x7528; <code>#</code> &#x53F7;&#x52A0;&#x4E0A;&#x6587;&#x7AE0;&#x5185;&#x5BB9;&#x4E2D;&#x7AE0;&#x8282;&#x7684;&#x6807;&#x9898;&#x5C31;&#x80FD;&#x5B9E;&#x73B0;&#x533A;&#x57DF;&#x5BFC;&#x822A;&#x3002;  </p>
<pre><code># &#x6982;&#x8FF0;

### &#x7B2C;&#x4E00;&#x90E8;&#x5206;

* [&#x7B2C;&#x4E00;&#x90E8;&#x5206;](part1/README.md)
    * [Writing&#x5F88;&#x725B;](part1/README.md#writing)
    * [GitBook&#x5F88;&#x725B;](part1/README.md#gitbook)
* [&#x7B2C;&#x4E8C;&#x90E8;&#x5206;](part2/README.md)
    * [&#x6211;&#x4EEC;&#x559C;&#x6B22;&#x793E;&#x4EA4;&#x7F51;&#x7EDC;](part2/README.md#feedback)
    * [&#x66F4;&#x597D;&#x7684;&#x5199;&#x4F5C;&#x5DE5;&#x5177;](part2/README.md#tools)
</code></pre><p><strong>&#x90E8;&#x5206;</strong></p>
<p>&#x5185;&#x5BB9;&#x8868;&#x53EF;&#x4EE5;&#x5206;&#x4E3A;&#x7531;&#x6807;&#x9898;&#x6216;&#x6C34;&#x5E73;&#x7EBF;&#x5206;&#x9694;&#x7684;&#x90E8;&#x5206;&#xFF1A;  </p>
<pre><code># &#x7AE0;&#x8282;&#x6807;&#x9898;

&#x8FD9;&#x91CC;&#x662F;&#x4E00;&#x4E9B;&#x7B80;&#x5355;&#x7684;&#x4ECB;&#x7ECD;&#x3002;

## &#x7B2C;&#x4E00;&#x8282;

Markdown will dictates _most_ of your **book&apos;s structure**

## &#x7B2C;&#x4E8C;&#x8282;

...
</code></pre><p>&#x90E8;&#x5206;&#x53EA;&#x662F;&#x7AE0;&#x8282;&#x7EC4;&#xFF0C;&#x6CA1;&#x6709;&#x5BF9;&#x5E94;&#x7684;&#x9875;&#x9762;&#xFF0C;&#x4F46;&#x6839;&#x636E;&#x4E0D;&#x540C;&#x4E3B;&#x9898;&#xFF0C;&#x5B83;&#x4F1A;&#x663E;&#x793A;&#x5728;&#x5BFC;&#x822A;&#x4E2D;&#x3002;  </p>
<h2 id="--">---</h2>
<h2 id="&#x9875;&#x9762;">&#x9875;&#x9762;</h2>
<h3 id="markdown&#x8BED;&#x6CD5;&#x683C;&#x5F0F;">markdown&#x8BED;&#x6CD5;&#x683C;&#x5F0F;</h3>
<p>&#x4E0D;&#x8D58;&#x8FF0;  </p>
<h3 id="&#x9876;&#x90E8;&#x63CF;&#x8FF0;">&#x9876;&#x90E8;&#x63CF;&#x8FF0;</h3>
<p>&#x9875;&#x9762;&#x53EF;&#x4EE5;&#x7528;&#x5B83;&#x4F5C;&#x4E3A;&#x63CF;&#x8FF0;&#x3002;<br>&#x5B83;&#x4F7F;&#x7528; <code>YAML</code> &#x683C;&#x5F0F;&#x7684;&#x98CE;&#x683C;&#xFF0C;&#x5728;&#x4E09;&#x6761;&#x865A;&#x7EBF;&#x4E4B;&#x95F4;&#x3002;<br>&#x6587;&#x6863;&#x4E2D;&#x4E5F;&#x53EF;&#x4EE5;&#x4E0D;&#x5199;&#x9876;&#x90E8;&#x63CF;&#x8FF0;&#x3002;  </p>
<pre><code>**&#x7279;&#x522B;&#x63D0;&#x793A;&#xFF1A;**&#x5728;&#x6CA1;&#x6709;&#x5B89;&#x88C5;&#x652F;&#x6301;&#x63D2;&#x4EF6;&#x4E4B;&#x524D;&#xFF0C;&#x4E0D;&#x8981;&#x5728;&#x6587;&#x4EF6;&#x4E2D;&#x4F7F;&#x7528;&#xFF0C;&#x5426;&#x5219;&#x7F16;&#x8BD1;&#x6216;&#x8005;&#x8FD0;&#x884C;&#x4F1A;&#x5931;&#x8D25;&#x3002;  
</code></pre><p>&#x57FA;&#x672C;&#x793A;&#x4F8B;&#xFF1A;  </p>
<pre><code>---
description: This is a short description of my page
---

# The content of my page
...
</code></pre><p>&#x9876;&#x90E8;&#x63CF;&#x8FF0;&#x7684;&#x5185;&#x5BB9;&#x53EF;&#x4EE5;&#x5B9A;&#x4E49;&#x81EA;&#x5DF1;&#x7684;&#x53D8;&#x91CF;&#xFF0C;&#x53EF;&#x4EE5;&#x53C2;&#x8003;&#x53D8;&#x91CF;&#x7AE0;&#x8282;&#xFF0C;&#x4EE5;&#x4FBF;&#x5728;&#x6A21;&#x677F;&#x4E2D;&#x4F7F;&#x7528;&#x4ED6;&#x4EEC;&#x3002;  </p>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                
                <a href="5-set.html" class="navigation navigation-next navigation-unique" aria-label="Next page: 5.设置">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"4.菜单","level":"1.2.1","depth":2,"next":{"title":"5.设置","level":"1.2.2","depth":2,"path":"docs/5-set.md","ref":"./docs/5-set.md","articles":[]},"previous":{"title":"基础","level":"1.2","depth":1,"ref":"","articles":[{"title":"4.菜单","level":"1.2.1","depth":2,"path":"docs/4-menu.md","ref":"./docs/4-menu.md","articles":[]},{"title":"5.设置","level":"1.2.2","depth":2,"path":"docs/5-set.md","ref":"./docs/5-set.md","articles":[]},{"title":"6.词汇表","level":"1.2.3","depth":2,"path":"docs/6-words.md","ref":"./docs/6-words.md","articles":[]},{"title":"7.多语言","level":"1.2.4","depth":2,"path":"docs/7-langs.md","ref":"./docs/7-langs.md","articles":[]},{"title":"8.markdown","level":"1.2.5","depth":2,"path":"docs/8-markdown.md","ref":"./docs/8-markdown.md","articles":[]},{"title":"9.AsciiDoc","level":"1.2.6","depth":2,"path":"docs/9-asciidoc.md","ref":"./docs/9-asciidoc.md","articles":[]},{"title":"10.生成电子书","level":"1.2.7","depth":2,"path":"docs/10-E-book.md","ref":"./docs/10-E-book.md","articles":[]}]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":[],"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"docs/4-menu.md","mtime":"2020-07-09T09:27:07.497Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2020-07-13T08:21:17.520Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

